//mongodb node的驱动程序
const mongoose = require("mongoose");
//schema就是students的数据结构
const adminsSchema = new mongoose.Schema({
  username: String,
  password: String,
});
//创建model
//借助在这里创建的model操作数据库
const adminsModel = mongoose.model("admins", adminsSchema, "admins");
module.exports = { adminsModel };
